﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<?php echo base_url();?>">

<title>美文分享后台管理</title>
  <style type="text/css">
    html{font-size:12px;}
	body{background-image:url(<?php echo base_url();?>img/admin/a1.jpg);background-repeat:repeat-x;background-size:100% ;}
	fieldset{width:500px; height:200px ;margin-top: 260px ;margin-left:1000px;}
	legend{font-weight:bold; font-size:14px;}
	.label{float:left; width:70px; margin-left:10px;}
	.left{margin-left:80px;}
	.input{width:150px;}
	span{color: #666666;}
  </style>
  <?php if(!empty($error)){?>
  <script type="text/javascript">
  
        alert("非法错误: "+"<?php echo $error;?>");   
  
  
  </script>
  <?php }?>
  <script language=JavaScript>
<!--
function InputCheck(LoginForm)
{
  if (LoginForm.username.value == "")
  {
    alert("请输入用户名!");
    LoginForm.username.focus();
    return (false);
  }
  if (LoginForm.password.value == "")
  {
    alert("请输入密码!");
    LoginForm.password.focus();
    return (false);
  }
   if (LoginForm.cap.value == "")
  {
    alert("请输入验证码!");
    LoginForm.password.focus();
    return (false);
  }

}

//-->
</script>
</head>
<body >

<div>
<fieldset>
<legend><font color=#0099CC>后台登录</legend></font>
<form name="LoginForm" method="post" action="<?php echo site_url('admin/check');?>" onSubmit="return InputCheck(this)">
<p>
<font color=#003399><label for="username" class="label" >用户名:</label></font>  <!--切记一定要设置输入（input）的size长度，否则容易被黑-->
<input id="username" name="username" type="text" class="input" size=20 placeholder="请输入名字"/>
<p/>
<p>
<font color=#003399><label for="password" class="label">口 令:</label></font>
<input id="password" name="password" type="password" class="input" size=20 placeholder="请输入口令" />
<p/>
<p>
<font color=#003399><label for="cap" class="label">验证码:</label></font>
<input type="text" name="cap" class="input" placeholder="请输入验证码"/>&nbsp;&nbsp;<?=$cap?>

</p>
<p>
<input type="submit" name="submit"  value="  登 录  " class="left" />
</p>
</form>
</fieldset>
</div>

</body>
</html>